package org.jeecg.modules.mes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 生产计划订单明细关联表
 * @Author: jeecg-boot
 * @Date: 2025-08-30
 * @Version: V2.0
 */
@Data
@TableName("mes_production_plan_order_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_production_plan_order_detail对象", description="生产计划订单明细关联表")
public class MesProductionPlanOrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**生产计划ID*/
    @Excel(name = "生产计划ID", width = 15)
    @ApiModelProperty(value = "生产计划ID")
    private String planId;

    /**订单ID*/
    @Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;

    /**订单明细ID*/
    @Excel(name = "订单明细ID", width = 15)
    @ApiModelProperty(value = "订单明细ID")
    private String orderDetailId;

    /**订单编号*/
    @Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    /**产品信息(门窗系列-窗号-颜色)*/
    @Excel(name = "产品信息", width = 20)
    @ApiModelProperty(value = "产品信息(门窗系列-窗号-颜色)")
    private String productInfo;

    /**产品编码*/
    @Excel(name = "产品编码", width = 15)
    @ApiModelProperty(value = "产品编码")
    private String productCode;

    /**产品名称*/
    @Excel(name = "产品名称", width = 15)
    @ApiModelProperty(value = "产品名称")
    private String productName;

    /**产品规格*/
    @Excel(name = "产品规格", width = 20)
    @ApiModelProperty(value = "产品规格")
    private String productSpec;

    /**计划数量*/
    @Excel(name = "计划数量", width = 15)
    @ApiModelProperty(value = "计划数量")
    private Integer planQuantity;

    /**实际数量*/
    @Excel(name = "实际数量", width = 15)
    @ApiModelProperty(value = "实际数量")
    private Integer actualQuantity;

    /**状态(0-待生产,1-生产中,2-已完成)*/
    @Excel(name = "状态", width = 15, dicCode = "plan_detail_status")
    @Dict(dicCode = "plan_detail_status")
    @ApiModelProperty(value = "状态(0-待生产,1-生产中,2-已完成)")
    private Integer status;

    /**优先级(1-低,2-中,3-高)*/
    @Excel(name = "优先级", width = 15, dicCode = "priority_level")
    @Dict(dicCode = "priority_level")
    @ApiModelProperty(value = "优先级(1-低,2-中,3-高)")
    private Integer priority;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
